package org.jeecg.modules.internship.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.jeecg.modules.internship.entity.Internship;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.internship.entity.vo.QureyInternship;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @since 2020-10-21
 */
public interface InternshipService extends IService<Internship> {

    /**
     * 分页多条件查询
     * @param page
     * @param limit
     * @param query
     * @return
     */
    IPage<Internship> pageSelect(Integer page, Integer limit, QureyInternship query);

    /**
     * 导出excel文件
     */
    String excelExport() throws IOException;

    /**
     * 导入excel文件
     * @param inputStream
     */
    void excelImport(InputStream inputStream) throws Exception;


    /**
     * 根据身份证更新数据
     * @param internship
     * @return
     */
    Integer updateBySId(Internship internship);

    /**
     * 生成word，并返回下载链接
     * @param id
     * @return
     */
    String downLoadWord(Integer id) throws IOException, InvalidFormatException;
}
